<?php
namespace App\Api\Web\Models;

use Illuminate\Database\Eloquent\Model;

class HouseWanted extends Model
{
    protected $table = 'house_wanted';

    protected $fillable = [
        'name',
        'user_id',
        'status',
        'city',
        'city_id',
        'position_brief',
        'position1_id',
        'position1_name',
        'position1_subway',
        'position1_subway_site',
        'position1_near',
        'position1_longitude',
        'position1_latitude',
        'position2_id',
        'position2_name',
        'position2_subway',
        'position2_subway_site',
        'position2_near',
        'position2_longitude',
        'position2_latitude',
        'position3_id',
        'position3_name',
        'position3_subway',
        'position3_subway_site',
        'position3_near',
        'position3_longitude',
        'position3_latitude',
        'position4_id',
        'position4_name',
        'position4_subway',
        'position4_subway_site',
        'position4_near',
        'position4_longitude',
        'position4_latitude',
        'bedroom_count',
        'sitroom_count',
        'rent_out',
        'bedroom_type',
        'toilet_type',
        'sex_limit',
        'total_lt',
        'total_gt',
        'description',
        'wechat',
        'mobile',
        'is_social',
        'main_img',
        'pv',
        'comment_count',
        'collect_count'
    ];

    static $rent_out = [
        '1' => '整租',
        '2' => '合租',
        '3' => '床位',
    ];

    static $toilet_type = [
        '1' => '独卫',
        '2' => '公卫',
    ];

    static $bedroom_type = [
        '1' => '主卧',
        '2' => '次卧',
        '3' => '隔断',
    ];

    static $sex_limit = [
        '1' => '不限',
        '2' => '限男生',
        '3' => '限女生',
    ];

    static $status = [
        '-900' => '用户删除',
        '-100' => '审核不通过',
        '100' => '待审核',
        '200' => '审核通过',
    ];



}